package de.dhbw.tinf11b.vfb;

/**
 * Mark class for passed or not passed. This class has no explicit mark.
 *
 */
public class PassedMark extends AbstractMark{
	protected boolean passed;
	protected String result;
	public PassedMark(Unit unit, boolean passed) {
		super(unit);
		this.passed = passed;
	}
	
	public boolean isPassed() {
		return passed;
	}
	public void setPassed(boolean passed) {
		this.passed = passed;
	}
	public String getResult(){
		if(passed) result = "Bestanden";
		else result = "Nicht Bestanden";
		return result;
	}
	
}